]> git.proxmox.com Git - qemu-server.git/commitdiff
serial: allow to pass arbitrary device names
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 1 Dec 2014 08:47:36 +0000 (09:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 1 Dec 2014 08:50:11 +0000 (09:50 +0100)
PVE/QemuServer.pm

index 2970598204626f5dfac28f108b06a0ee806742b0..9b791b85c3e77e499d42214fa3484f14d38ef65d 100644 (file)
@@ -598,9 +598,9 @@ PVE::JSONSchema::register_standard_option("pve-qm-hostpci", $hostpcidesc);
 my $serialdesc = {
        optional => 1,
        type => 'string',
-       pattern => '(/dev/ttyS\d+|socket)',
+       pattern => '(/dev/.+|socket)',
        description =>  <<EODESCR,
-Create a serial device inside the VM (n is 0 to 3), and pass through a host serial device, or create a unix socket on the host side (use 'qm terminal' to open a terminal connection).
+Create a serial device inside the VM (n is 0 to 3), and pass through a host serial device (i.e. /dev/ttyS0), or create a unix socket on the host side (use 'qm terminal' to open a terminal connection).
 
 Note: This option allows direct access to host hardware. So it is no longer possible to migrate such machines - use with special care.