|
|
root@compute01:/usr/src# virt-install --name=Windows2019_x86 --ram 8192 --vcpus=4 --disk path=/usr/src/Windows2019-x86.qcow2,format=qcow2,size=15,bus=virtio --accelerate --cdrom /usr/src/cn_windows_server_2019_x64_dvd_2d80e042.iso --vnc --vncport=5906 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole' d& w# N3 V2 D9 o i
" X# q* p& E+ m$ N7 g. iStarting install...$ C* ~, t' h/ f8 u: ^ D
ERROR Cannot get interface MTU on 'br0': No such device
7 X7 i! I- V! M) A0 Q* O% H* U5 jDomain installation does not appear to have been successful.
1 a( u0 B b& V r* J+ `' DIf it was, you can restart your domain by running:) a; H. S7 b3 {+ e* W0 u* }9 n0 L
virsh --connect qemu:///system start Windows2019_x86
$ d4 r$ x) x3 ^) o/ h4 _9 z8 h6 Qotherwise, please restart your installation.
* {% U( `% h& {( y. b
7 G' |) A* q! o, D+ J) z; \创建失败:有问题,检查网卡:8 e8 F$ n( E% I+ L7 _; x: X
2 z& [% M5 u9 T+ } W9 C
root@compute01:/usr/src# ip addr8 y' b' V$ e$ C a6 G1 q
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
- m( T/ [% m4 M) x. H5 Y link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00+ {/ ^: ~+ P+ \. X
inet 127.0.0.1/8 scope host lo
5 B- f4 }' I7 e% R, p valid_lft forever preferred_lft forever5 O" E& k$ w/ L) P' Q7 P2 M" j1 ]: u' S
inet6 ::1/128 scope host
+ t' T; \. L# ~$ P, m valid_lft forever preferred_lft forever( H. U4 z J3 E, U1 p- p! Q
2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
3 c9 f9 ]! u6 x* A link/ether 00:e0:4c:68:10:89 brd ff:ff:ff:ff:ff:ff6 K9 Z0 G0 s9 A2 O; D6 t: Q
3: enp9s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
0 f! ?3 k$ Y) S. J) K& @1 L& f link/ether d8:50:e6:4a:41:b2 brd ff:ff:ff:ff:ff:ff* ^! u3 ^& |- n# V& f& K! W/ q
inet 198.192.168.66/24 brd 198.192.168.255 scope global enp9s08 V' L) p/ b* Y5 N1 }; _8 \4 r
valid_lft forever preferred_lft forever
; I. e( R5 S6 y; n F6 x, k inet6 fe80::da50:e6ff:fe4a:41b2/64 scope link
+ Q3 ^! f1 f: W$ z valid_lft forever preferred_lft forever
* p- D0 B6 x: Z& a' m4: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000! r6 A% m6 K% ~" L+ X; p$ ~
link/ether 04:25:c5:2a:57:13 brd ff:ff:ff:ff:ff:ff8 w( ]7 p; P0 v2 k/ a4 W: E. B& x0 i- _
inet 192.168.8.66/24 brd 192.168.8.255 scope global enp2s0f08 H# C' V) h; E/ V, X
valid_lft forever preferred_lft forever7 @+ @: R- x% v; q, P% W5 h
inet6 fe80::625:c5ff:fe2a:5713/64 scope link
) W$ R) n' p' |- x4 {% O3 A valid_lft forever preferred_lft forever
- i7 F b6 H; |( V5: enp2s0f1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
) I3 f0 R+ `% `. [, G: y: [ link/ether 04:25:c5:2a:57:14 brd ff:ff:ff:ff:ff:ff
3 H) j# D6 c2 H$ A1 l' B( v3 U3 R11: vnet2: <BROADCAST,MULTICAST> mtu 1500 qdisc fq_codel state DOWN group default qlen 10008 D* Z5 z) p1 D
link/ether fe:54:00:90:65:d2 brd ff:ff:ff:ff:ff:ff( E8 m% t# ?" ?1 b3 U- G
! R1 v5 w0 e# u# t! w6 U) ?
重新配置网络:- u% s" V4 _. g8 q
( u7 p8 y; a" y" K; b' _root@compute01:/usr/src# netplan apply
! q# _; c0 a3 a7 b0 m, u0 t* `# F( T" M
** (generate:6407): WARNING **: 13:00:50.842: `gateway4` has been deprecated, use default routes instead.
7 Z4 C: y8 x" o* t6 n$ ASee the 'Default routes' section of the documentation for more details.
5 K- f8 M, _( ~) e* N# L! \' \# x: F* |
** (process:6405): WARNING **: 13:00:51.287: `gateway4` has been deprecated, use default routes instead.
3 h8 x2 Y. s% q$ _# jSee the 'Default routes' section of the documentation for more details.# u/ R$ Q: Z: E9 g9 `
9 y5 b+ ~; f6 n, b/ P2 M** (process:6405): WARNING **: 13:00:51.298: `gateway4` has been deprecated, use default routes instead.
9 M2 t5 a$ n+ {8 n+ c+ LSee the 'Default routes' section of the documentation for more details.+ I8 C+ Z6 |5 c- D7 U9 k+ i
' \0 x" c7 U$ G3 }% S7 V** (process:6405): WARNING **: 13:00:51.684: `gateway4` has been deprecated, use default routes instead., H( n& G8 M+ g: L0 T
See the 'Default routes' section of the documentation for more details.
; G' m$ R/ W3 g6 E# w+ w% s: @# l2 f1 s
** (process:6405): WARNING **: 13:00:51.685: `gateway4` has been deprecated, use default routes instead., s/ H; f4 }6 ?
See the 'Default routes' section of the documentation for more details.
# z1 Q; k, Z) ]- r
' L4 b6 z3 ]7 [9 L3 V, [0 E: U
! J9 k6 P& y# C再重试,问题解决。3 H9 J. ` ]2 h
root@compute01:/usr/src# virt-install --name=Windows2019_x86 --ram 8192 --vcpus=4 --disk path=/usr/src/Windows2019-x86.qcow2,format=qcow2,size=15,bus=virtio --accelerate --cdrom /usr/src/cn_windows_server_2019_x64_dvd_2d80e042.iso --vnc --vncport=5906 --vnclisten=0.0.0.0 --network bridge=br0,model=virtio --noautoconsole! |. Y- e* I* I4 h& |2 S1 R0 s' x
7 u, z" W$ ?/ hStarting install...
9 R9 P* B5 z1 @& p9 I; WCreating domain... | 0 B 00:00:00
! l5 ^6 g/ L/ A, e" z' F2 I" l+ I
$ H0 W, y" V EDomain is still running. Installation may be in progress.
8 n; D7 z1 M; ? uYou can reconnect to the console to complete the installation process.6 r- m2 f3 m! ?) f
, N! t( o9 k8 R- t+ D/ h' h! T- K, K% F/ b" g
|
|