cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1596
Views
0
Helpful
8
Replies

Starting windows10 node in CML issue

CSCO12231061
Level 1
Level 1

Hello,

I have created node and image definition for windows10 node inside CML.

I have also added windows10 qcow2 image in image definition.

Now when I want to start this node I receive error below:

windows0: Launch Queue (E0228 14:29:32.165272 115484 main.go:222] Disk resize failed: qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there. qemu-img: Use the --shrink option to perform a shrink operation.)

 Can anybody advise how to resolve this ?

Rgds,Ivan

8 Replies 8

balaji.bandi
Hall of Fame
Hall of Fame

Hi,

yes, I already checked but didn't find any useful info there.

Did anyone manage to run windows10 qcow2 image in CML ?

If yes can you share node / image definition ? 

i have a Linux node running, never tried windows, i will test it later when I get a chance the report back here.

you can post a windows YML file?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

CSCO12231061
Level 1
Level 1

Hi,

I cannot upload .yaml file

I have pasted the content below:

=========================

id: Windows10
general:
description: Windows10
nature: server
read_only: false
device:
interfaces:
has_loopback_zero: false
physical:
- eth0
- eth1
serial_ports: 1
default_count: 2
ui:
visible: true
label_prefix: windows
icon: host
label: windows
sim:
linux_native:
libvirt_domain_driver: kvm
driver: server
disk_driver: sata
ram: 8192
cpus: 4
cpu_limit: 100
nic_driver: e1000
boot_disk_size: 100
video:
model: cirrus
memory: 16
data_volume: 200
boot:
timeout: 300
inherited:
image:
ram: true
cpus: true
cpu_limit: true
data_volume: true
boot_disk_size: true
node:
ram: true
cpus: true
cpu_limit: true
data_volume: true
boot_disk_size: true
configuration:
generator:
driver: server
schema_version: 0.0.1

=================

Rgds,Ivan

what is your CML compute resources

CPU

RAM

HDD 

CML bare metal or inside ESXI VM ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

CML is running as ESXI VM

dedicated resources are:

48vCPUs

112GB RAM

600GB HDD

have you created a QCOW file or downloaded it from over the internet pre-build?

try to shrink and test it (change the size depending on requirement)

# qemu-img shrink vdisk2.img 30G

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

I have downloaded windows10 VM from official windows site

and then converted vmdk to qcow2

once qcow2 was imported in CML and node started I received that error

I'll try to shrink the image