freebsd:freebsd_-_bhyve
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| freebsd:freebsd_-_bhyve [2024-03-30 00:06:24] – [Bhyve-Netzwerkkonfiguration] manfred | freebsd:freebsd_-_bhyve [2024-07-06 18:20:05] (aktuell) – [Intel-GPU passthrough] manfred | ||
|---|---|---|---|
| Zeile 57: | Zeile 57: | ||
| VM-Start ('' | VM-Start ('' | ||
| - | # bhyve -AHP -s 0: | + | # bhyve -AHP -s 0: |
| Mount mit Linux/ | Mount mit Linux/ | ||
| Zeile 65: | Zeile 65: | ||
| # vim /etc/fstab | # vim /etc/fstab | ||
| sharename | sharename | ||
| + | |||
| + | |||
| + | ==== mehrere Verzeichnisse in die VM durchreichen ==== | ||
| + | |||
| + | |||
| + | VM-Start ('' | ||
| + | # bhyve -AHP -s 0: | ||
| + | |||
| + | Mount mit Linux/ | ||
| + | # mount -t 9p -o trans=virtio mmaudio /mm/Audio | ||
| + | # mount -t 9p -o trans=virtio mmvideo /mm/Video | ||
| + | |||
| + | Eintrag in der FsTab: | ||
| + | # vim /etc/fstab | ||
| + | mmaudio | ||
| + | mmvideo | ||
| Zeile 93: | Zeile 109: | ||
| > vi device.map | > vi device.map | ||
| (hd0) ./linux.img | (hd0) ./linux.img | ||
| - | (cd0) ./buntu-20.04-legacy-server-amd64.iso | + | (cd0) ./debian-12.4.0-amd64-netinst.iso |
| Grub läd den Linux-Kernel vom Installations-ISO-Image: | Grub läd den Linux-Kernel vom Installations-ISO-Image: | ||
| Zeile 99: | Zeile 115: | ||
| VM starten: | VM starten: | ||
| - | > bhyve -A -H -P -s 0: | + | > bhyve -A -H -P -s 0: |
| > bhyvectl --destroy --vm=linuxguest | > bhyvectl --destroy --vm=linuxguest | ||
| Zeile 403: | Zeile 419: | ||
| > kldload vmm | > kldload vmm | ||
| | | ||
| - | > pciconf -l | + | > pciconf -l | grep -Ei ' |
| - | ... | + | |
| vgapci0@pci0: | vgapci0@pci0: | ||
| - | ... | ||
| xhci0@pci0: | xhci0@pci0: | ||
| - | ... | ||
| | | ||
| - | > devctl | + | > devctl |
| - | > devctl | + | > devctl |
| | | ||
| > devctl set driver pci0:0:2:0 ppt | > devctl set driver pci0:0:2:0 ppt | ||
| > devctl set driver pci0:0:20:0 ppt | > devctl set driver pci0:0:20:0 ppt | ||
| | | ||
| - | > pciconf -l | + | > pciconf -l | grep -Fi ppt |
| - | ... | + | |
| ppt0@pci0: | ppt0@pci0: | ||
| - | ... | ||
| ppt1@pci0: | ppt1@pci0: | ||
| - | ... | ||
| Zeile 447: | Zeile 457: | ||
| Call bhyve //(es ist notwendig, von UEFI zu booten)//: | Call bhyve //(es ist notwendig, von UEFI zu booten)//: | ||
| - | > bhyve -AHPw -c 2 -m 4G -s 0, | + | > bhyve -AHPw -c 2 -m 4G -s 0, |
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| //Hier wird die Option '' | //Hier wird die Option '' | ||
/home/http/wiki/data/attic/freebsd/freebsd_-_bhyve.1711757184.txt · Zuletzt geändert: von manfred
