Commit b6f5a1c2 authored by Leigh B Stoller's avatar Leigh B Stoller

Add another directive for mapping in USB devices to the guest.

parent 6e7d5c85
......@@ -1748,10 +1748,20 @@ okay:
addConfig($vninfo, "apic=1", 2);
addConfig($vninfo, "acpi=1", 2);
addConfig($vninfo, "pae=1", 2);
# XXX wont start without vnc=1
# XXX wont start without vnc=1
addConfig($vninfo, "vnc=1", 2);
addConfig($vninfo, "sdl=0", 2);
addConfig($vninfo, "stdvga=0", 2);
#
# Not sure how to do this for PVM.
#
if (exists($attributes->{'XEN_USBDEVICES'})) {
my $devices = $attributes->{'XEN_USBDEVICES'};
addConfig($vninfo, "usb=1", 2);
addConfig($vninfo, "usbdevices = [".
join(",", map {"'" . $_ . "'"} split(",", $devices)) .
"]", 2);
}
} else {
if ($os eq "FreeBSD") {
addConfig($vninfo, "extra = 'boot_verbose=1" .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment