English
« Back to projectatomic.io
Ask Your Question
0

no-cloud setup of atomic raw

asked 2015-04-27 13:41:36 +0000

oystercatcher gravatar image

Greetings,

I am new to project atomic and have been going through the documentation. I am using this link for the raw image.

http://download.fedoraproject.org/pub...64/Fedora-Cloud-Atomic-20141203-21.x8664.raw.xz

I think there should be a note in the doc for virt-make-fs that virt-manager has to be running to use the command.

virt-make-fs --type=msdos --label=cidata input f21atomic.img libvirt: XML-RPC error : Cannot write data: Transport endpoint is not connected libguestfs: error: could not connect to libvirt (URI = qemu:///session): Cannot write data: Transport endpoint is not connected [code=38 domain=7]

I tried using virt-manager to install but I couldn't seem to figure out how to add the init file in the gui. resorted to using guestfish on the raw image.

I want to use the atomic image to bring up multiple instances. How is each instance uniquely identified? I ask because when I tried to install another instance with virt-manager I got a message that the running instance was using the raw file. Sorry dont have the exact message but I hope to further testing soon.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-04-29 02:12:05 +0000

miabbott gravatar image

updated 2015-04-29 02:13:17 +0000

If you are using virt-manager, I would recommend using the QCOW2 image instead of the RAW image:

Fedora-Cloud-Atomic-20141203-21.x86_64.qcow2

The docs labeled "Step by Step on virt-manager" from the Quickstart guide should be enough to get you going.

As for multiple instances, you can use qemu-img to create multiple copy-on-write' images that are backed by the original QCOW2 image. For example:

# qemu-img create -f qcow2 -o backing_file=Fedora-Cloud-Atomic-20141203-21.x86_64.qcow2
 Fedora-Cloud-Atomic-20141203-21.x86_64.instance0.qcow2
Formatting 'Fedora-Cloud-Atomic-20141203-21.x86_64.instance0.qcow2', fmt=qcow2 size=6442450944 backing_file=' Fedora-Cloud-Atomic-20141203-21.x86_64.qcow2' encryption=off cluster_size=65536 lazy_refcounts=off
# qemu-img create -f qcow2 -o backing_file=Fedora-Cloud-Atomic-20141203-21.x86_64.qcow2
 Fedora-Cloud-Atomic-20141203-21.x86_64.instance1.qcow2
Formatting 'Fedora-Cloud-Atomic-20141203-21.x86_64.instance1.qcow2', fmt=qcow2 size=6442450944 backing_file=' Fedora-Cloud-Atomic-20141203-21.x86_64.qcow2' encryption=off cluster_size=65536 lazy_refcounts=off

Then you can use those instances as arguments to 'virt-install':

# virt-install --import --name Fedora-Cloud-Atomic-20141203-21.x86_64.instance0 --ram 1024 --vcpus 1 --disk path=/var/lib/libvirt/images/Fedora-Cloud-Atomic-20141203-21.x86_64.instance0.qcow2,format=qcow2,bus=virtio --disk path=/var/lib/libvirt/images/init.iso,device=cdrom --network bridge=virbr0 --force --noautoconsole
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-27 13:41:36 +0000

Seen: 1,836 times

Last updated: Apr 29 '15