From ba4c770c3747dd5bb956246c89b9457bd9d6ede1 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Sun, 11 Aug 2013 14:50:05 -0400 Subject: [PATCH 1/2] fix(common): Exclude default systemd filesystem targets. We don't need the default root filesystem fsck and remount targets provided by systemd since root is read only. The only default one what was included in this way was tmp.mount but that is now covered by a dependency in the coreos-init package. --- common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/common.sh b/common.sh index c25573ea22..4c4c114ccc 100644 --- a/common.sh +++ b/common.sh @@ -424,6 +424,7 @@ COMMON_INSTALL_MASK=" /usr/lib/debug /usr/lib/gcc /usr/lib*/pkgconfig + /usr/lib/systemd/system/local-fs.target.wants /usr/local/autotest-chrome /usr/man /usr/share/aclocal From bef5728f6eb3c717f71c2b66770bb08bcce97447 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Sun, 11 Aug 2013 22:17:20 -0400 Subject: [PATCH 2/2] fix(image_to_vm): Cleanup qemu script, document -virtfs --- build_library/vm_image_util.sh | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/build_library/vm_image_util.sh b/build_library/vm_image_util.sh index 1c5c09401d..617493da62 100644 --- a/build_library/vm_image_util.sh +++ b/build_library/vm_image_util.sh @@ -300,24 +300,31 @@ SCRIPT_DIR="\`dirname "\$0"\`" DISK_IMAGE="\${SCRIPT_DIR}/${dst_name}" # Default to KVM, fall back on full emulation -exec qemu-system-x86_64 \ - -name "${VM_NAME}" \ - -uuid "${VM_UUID}" \ - -m ${vm_mem} \ - -machine accel=kvm:tcg \ - -drive index=0,if=virtio,media=disk,format=qcow2,file="\${DISK_IMAGE}" \ - -net nic,vlan=0,model=virtio \ - -net user,vlan=0,hostfwd=tcp::2222-:22 \ +exec qemu-system-x86_64 \\ + -name "${VM_NAME}" \\ + -uuid "${VM_UUID}" \\ + -m ${vm_mem} \\ + -machine accel=kvm:tcg \\ + -drive index=0,if=virtio,media=disk,format=qcow2,file="\${DISK_IMAGE}" \\ + -net nic,vlan=0,model=virtio \\ + -net user,vlan=0,hostfwd=tcp::2222-:22 \\ "\$@" EOF chmod +x "${script}" cat >"${VM_README}" <