1
0
mirror of synced 2026-05-04 15:25:40 +00:00

Use Dom0's resolv.conf unless nameserver is set.

If nameserver config option is not set (default value), copy Dom0's
/etc/resolv.conf on guest.
Provide a role to show how to customize /etc/resolv.conf in guest.
This commit is contained in:
Stéphane Jourdois
2010-07-18 16:12:32 +02:00
committed by Dmitry Nedospasov
parent ec26ac7c9f
commit 2e3924427e
12 changed files with 79 additions and 2 deletions

View File

@@ -237,6 +237,8 @@ xen-create-image - Easily create new Xen instances with networking and OpenSSH.
--nameserver="123.456.789.ABC 123.456.789.DEF"
Setup the nameserver of the machine, multiple space
separated nameservers are allowed.
If not provided, Dom0's /etc/resolv.conf will be copied
to guest.
--bridge=brname
Optionally, set a specific bridge for the new instance.
@@ -377,7 +379,6 @@ Create a Xen configuration file in so that xm can start the new domain.
gateway = 192.168.1.1
broadcast = 192.168.1.255
netmask = 255.255.255.0
nameserver = 192.168.1.1
#
@@ -1407,6 +1408,11 @@ sub setupDefaultOptions
$CONFIG{ 'mount_fs_xfs' } = '-t xfs';
$CONFIG{ 'mount_fs_reiserfs' } = '-t reiserfs';
#
# Network options.
#
$CONFIG{ 'nameserver' } = '';
}