today based on SLES 12 SP2, i’m using the imbeded QEMU to create a VM like below steps.
create one image for the VM using below command.
qemu-img -f create qcow2 /images/vm1.qcow2 8G
successuflly perofmed. the image was generated in the specific category.
Create the VM using the qemu-system-x86_64 command to install the Guest OS , using below comamnd:
qemu-system-x86_64 -m 512 -smp 4 --enable-kvm Âboot order=dc -hda /root/howl/vm1.qcow2 -cdrom /root/howl/SLES_SP1_x86_64.iso
when execute this command, error occurs like below:
Unable to init server: Could not connect: connection refused:
gtk initialization failed.
i don’t understand this much, could anyone kindly give your suggestions here? thanks very much.
Hi and welcome to the forum
Where you created the vm1.qcow2 image locations differ? It also looks like your not running X or is libvirtd installed and running? Maybe consider virt-manager (can be connected from a remote system if required) or virsh instead
[QUOTE=howloncampus;39429]today based on SLES 12 SP2, i’m using the imbeded QEMU to create a VM like below steps.
create one image for the VM using below command.
qemu-img -f create qcow2 /images/vm1.qcow2 8G
successuflly perofmed. the image was generated in the specific category.
Create the VM using the qemu-system-x86_64 command to install the Guest OS , using below comamnd:
qemu-system-x86_64 -m 512 -smp 4 --enable-kvm Âboot order=dc -hda /root/howl/vm1.qcow2 -cdrom /root/howl/SLES_SP1_x86_64.iso
when execute this command, error occurs like below:
Unable to init server: Could not connect: connection refused:
gtk initialization failed.
i don’t understand this much, could anyone kindly give your suggestions here? thanks very much.
B.R.
Howl.[/QUOTE]
maybe it’s just because you redacted the commands for privacy reasons - but your command “1” creates the image in “/images/vm1.qcow2”, while command “2” addresses it as “/root/howl/vm1.qcow2”.