Merge remote-tracking branch 'origin/pr/318'
* origin/pr/318: Pass network parameters to linux-stubdom Fixes QubesOS/qubes-issues#5022
This commit is contained in:
commit
2f4b42e5cd
@ -1439,7 +1439,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
|
|||||||
<script path="vif-route-qubes" />
|
<script path="vif-route-qubes" />
|
||||||
</interface>
|
</interface>
|
||||||
<!-- server_ip is the address of stubdomain. It hosts it's own DNS server. -->
|
<!-- server_ip is the address of stubdomain. It hosts it's own DNS server. -->
|
||||||
<emulator type="stubdom-linux" />
|
<emulator type="stubdom-linux" cmdline="-qubes-net:client_ip=10.137.0.1,dns_0=10.139.1.1,dns_1=10.139.1.2,gw=10.137.0.2,netmask=255.255.255.255" />
|
||||||
<input type="tablet" bus="usb"/>
|
<input type="tablet" bus="usb"/>
|
||||||
<video>
|
<video>
|
||||||
<model type="vga"/>
|
<model type="vga"/>
|
||||||
|
@ -166,14 +166,21 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
type="stubdom"
|
type="stubdom"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if vm.netvm and not
|
{% if vm.netvm %}
|
||||||
vm.features.check_with_template('linux-stubdom', True) %}
|
{% if vm.features.check_with_template('linux-stubdom', True) %}
|
||||||
|
cmdline="-qubes-net:client_ip={{ vm.ip -}}
|
||||||
|
,dns_0={{ vm.dns[0] -}}
|
||||||
|
,dns_1={{ vm.dns[1] -}}
|
||||||
|
,gw={{ vm.netvm.gateway -}}
|
||||||
|
,netmask={{ vm.netmask }}"
|
||||||
|
{% else %}
|
||||||
cmdline="-net lwip,client_ip={{ vm.ip -}}
|
cmdline="-net lwip,client_ip={{ vm.ip -}}
|
||||||
,server_ip={{ vm.dns[1] -}}
|
,server_ip={{ vm.dns[1] -}}
|
||||||
,dns={{ vm.dns[0] -}}
|
,dns={{ vm.dns[0] -}}
|
||||||
,gw={{ vm.netvm.gateway -}}
|
,gw={{ vm.netvm.gateway -}}
|
||||||
,netmask={{ vm.netmask }}"
|
,netmask={{ vm.netmask }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% if vm.stubdom_mem %}
|
{% if vm.stubdom_mem %}
|
||||||
memory="{{ vm.stubdom_mem * 1024 -}}"
|
memory="{{ vm.stubdom_mem * 1024 -}}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user