diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 7bd9465593..04728673de 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -999,7 +999,7 @@ class BaseConfig(object): | |||
999 | if self.slirp_enabled: | 999 | if self.slirp_enabled: |
1000 | self.nfs_server = '10.0.2.2' | 1000 | self.nfs_server = '10.0.2.2' |
1001 | else: | 1001 | else: |
1002 | self.nfs_server = '192.168.7.1' | 1002 | self.nfs_server = '192.168.7.@GATEWAY@' |
1003 | 1003 | ||
1004 | # Figure out a new nfs_instance to allow multiple qemus running. | 1004 | # Figure out a new nfs_instance to allow multiple qemus running. |
1005 | ps = subprocess.check_output(("ps", "auxww")).decode('utf-8') | 1005 | ps = subprocess.check_output(("ps", "auxww")).decode('utf-8') |
@@ -1187,6 +1187,7 @@ class BaseConfig(object): | |||
1187 | netconf = " " + self.cmdline_ip_tap | 1187 | netconf = " " + self.cmdline_ip_tap |
1188 | netconf = netconf.replace('@CLIENT@', str(client)) | 1188 | netconf = netconf.replace('@CLIENT@', str(client)) |
1189 | netconf = netconf.replace('@GATEWAY@', str(gateway)) | 1189 | netconf = netconf.replace('@GATEWAY@', str(gateway)) |
1190 | self.nfs_server = self.nfs_server.replace('@GATEWAY@', str(gateway)) | ||
1190 | logger.info("Network configuration:%s", netconf) | 1191 | logger.info("Network configuration:%s", netconf) |
1191 | self.kernel_cmdline_script += netconf | 1192 | self.kernel_cmdline_script += netconf |
1192 | mac = "%s%02x" % (self.mac_tap, client) | 1193 | mac = "%s%02x" % (self.mac_tap, client) |