bmullan
(Brian Mullan)
March 22, 2023, 5:11pm
1
I have a genuine Windows 7 Ultimate .ISO that I’ve renamed to just win7.iso
I have downloaded the latest Virtio .ISO and renamed it to just virtio.iso
The Windows 7 Ultimate .ISO doesn’t have “virtio” so I executed the following command and got an error. Note: win7 is the LXD VM name
$ echo -n ‘-drive file=/home/bmullan/Downloads/win7-genuine/win7.iso,index=0,media=cdrom,if=ide -drive file=/home/bmullan/Downloads/win7-genuine/virtio.iso,index=1,media=cdrom,if=ide’ | lxc config set win7 raw.qemu
Error: cannot set ‘win7’ to ‘raw.qemu’: unknown key
is the following command incorrect?
lxc config set win7 raw.qemu
Thanks for any info
stgraber
(Stéphane Graber)
March 22, 2023, 5:14pm
2
Hmm, the error you’re getting is consistent with the instance being a container instead of a VM.
Did you maybe forgot a --vm
when creating the empty instance>
bmullan
(Brian Mullan)
March 22, 2023, 5:15pm
3
No I used the following command to create the VM
lxc init win7 --empty --vm -c security.secureboot=false -c limits.cpu=4 -c limits.memory=8GB
But I can delete and recreate in case something else occurred.
Brian
bmullan
(Brian Mullan)
March 22, 2023, 5:29pm
4
Stephane…
Okay same thing happens when I try to recreate:
$ lxc init win7-new --empty --vm -c security.secureboot=false -c limits.cpu=4 -c limits.memory=8GB
Creating win7-new
$ lxc config device override win7-new root size=40GB
Device root overridden for win7-new
$ echo -n ‘-drive file=/home/bmullan/Downloads/win7-genuine/win7.iso,index=0,media=cdrom,if=ide -drive file=/home/bmullan/Downloads/win7-genuine/virtio.iso,index=1,media=cdrom,if=ide’ | lxc config set win7 raw.qemu
Error: cannot set ‘win7’ to ‘raw.qemu’: unknown key
bmullan
(Brian Mullan)
March 22, 2023, 5:32pm
5
Is the following command syntax incorrect?
lxc config set win7 raw.qemu
From Documentation:
Instance Configuration
It just says:
stgraber
(Stéphane Graber)
March 22, 2023, 6:37pm
7
bmullan:
echo -n ‘-drive file=/home/bmullan/Downloads/win7-genuine/win7.iso,index=0,media=cdrom,if=ide -drive file=/home/bmullan/Downloads/win7-genuine/virtio.iso,index=1,media=cdrom,if=ide’ | lxc config set win7 raw.qemu
Should be:
echo -n ‘-drive file=/home/bmullan/Downloads/win7-genuine/win7.iso,index=0,media=cdrom,if=ide -drive file=/home/bmullan/Downloads/win7-genuine/virtio.iso,index=1,media=cdrom,if=ide’ | lxc config set win7 raw.qemu -
bmullan
(Brian Mullan)
March 22, 2023, 7:00pm
8
Thanks … the missing end “-” was the problem.
I did find that other options exist also such as:
lxc config set win7 raw.qemu -- "-device intel-hda -device hda-duplex"