Created
October 28, 2015 10:03
-
-
Save s-leroux/b1d6948a9b75bce2146d to your computer and use it in GitHub Desktop.
Cloudera Quickstart VM virsh domain configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> | |
<name>cloudera-lab</name> | |
<uuid>a682109a-774b-11e5-b6a2-9b5b6cc0bf3b</uuid> | |
<memory>8388608</memory> | |
<vcpu>2</vcpu> | |
<os> | |
<type arch="x86_64">hvm</type> | |
</os> | |
<features> | |
<acpi/> | |
</features> | |
<clock sync="utc"/> | |
<devices> | |
<emulator>/usr/bin/kvm</emulator> | |
<disk type='file' device='disk'> | |
<source file='/srv/vm/cloudera-lab/cloudera-quickstart-vm-5.4.2-0-kvm.qcow2'/> | |
<driver name='qemu' type='qcow2' cache='none' /> | |
<target dev='hda'/> | |
</disk> | |
<interface type='bridge'> | |
<mac address='52:54:00:12:34:56'/> | |
<source bridge='lab0' /> | |
</interface> | |
<!-- <graphics type='vnc' port='-1' keymap='fr'/> --> | |
<console type='pty'> | |
<target type='serial' port='0' /> | |
</console> | |
<video> | |
<model type='vmvga'/> | |
</video> | |
</devices> | |
</domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My virsh domain configuration to run the Cloudera Quickstart VM 5.4.2.0 on KVM.
Of course, you will have to change the path to the disk image and the bridge interface to match you local setup. Concerning that later, you might want to switch to the virsh "default virtual network" which is NAT-based instead of using a bridge configuration.
In addition, you need a video card entry (
<video>...</video>
) in order for the VM to start correctly.However, if you run the VM on an headless setup like me, you probably want to set the default run level to 3 instead of 5 by editing
/etc/inittab
to prevent X11 to start: