02-28-2023 12:07 PM
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
02-28-2023 12:30 PM
check the below thread may help you :
https://community.cisco.com/t5/cisco-modeling-labs-discussions/adding-vms-to-cml/td-p/4513055
02-28-2023 11:11 PM
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 ?
03-01-2023 04:46 PM
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?
03-01-2023 10:42 PM
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
03-01-2023 11:38 PM
what is your CML compute resources
CPU
RAM
HDD
CML bare metal or inside ESXI VM ?
03-02-2023 12:13 AM
Hello,
CML is running as ESXI VM
dedicated resources are:
48vCPUs
112GB RAM
600GB HDD
03-02-2023 02:01 AM
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
03-02-2023 10:32 PM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide