Friday, May 3, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 522  / 2 Years ago, wed, august 24, 2022, 12:58:35

I'm testing the creation of virtual machines with Ubuntu. The first virtual machine was created with the default settings and is called ubuntu:



virsh --connect qemu:///system list --all
Id Name State
----------------------------------------------------
- ubuntu shut off


I'm creating an additional virtual machine:



vmbuilder kvm ubuntu 
--suite saucy
--flavour virtual
--user demo
--pass demo
--arch amd64
--dest /var/vm/demo1
--part vmbuilder.partition
--domain demo1
--ip 192.168.1.3
--mask 255.255.255.0
--gw 192.168.1.1
--dns 192.168.1.2
--libvirt qemu:///system
--addpkg linux-image-generic
--addpkg openssh-server


The command fails with the following error:




Domain ubuntu already exists at qemu:///system




Why is it sticking with ubuntu? Isn't it the purpose of --domain to set the name of the domain?


More From » virtualization

 Answers
2

The error talks about a domain, but it's actually the host name which is already in use.



The --domain option sets the domain to which the VM belongs, not the actual name of the machine. To set the name of the machine, use --hostname option (found in vmbuilder kvm ubuntu --help).


[#25689] Thursday, August 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atereress

Total Points: 79
Total Questions: 106
Total Answers: 119

Location: Federated States of Micronesia
Member since Sun, May 16, 2021
3 Years ago
;