Showing posts with label networking. Show all posts
Showing posts with label networking. Show all posts

Saturday, January 8, 2022

Qemu -hostfwd at last!

 I'm still trying to figure this one out, to be honest

Sparc SS-20 seems to be much improved over the last couple of years; I'm able to boot and install Solaris 7 without much trouble as long as I stick to one cpu and 512megs of ram.

The big big thing is that I've figured out the current (as of 2022) network syntax. 

Sorta.

Now instead of mucking with netdev and vlans I'm able to simply use the "-nic" parameter and put hostfwd directives there.

So here's the complete command for sparc:

qemu-system-sparc -M SS-20 -m 512 -hda (drive) -cdrom  (iso) -boot c -cpu "TI SuperSparc 60" -nic user,hostfwd=tcp::8023-:23

8023 could presumably be anything? to a degree -it didn't work when I tried "80023", though. 

I changed it to "tcp::23-:23" and that worked, but it seems like a bad idea -still, it can be done!


Monday, November 2, 2015

Tips for using proxmox

I just got a server and one of the options was to run proxmox on it, so I chose that.

I found this guide on low-end talk which had some great tips on it. Most importantly was the interfaces entry and network info, which I'm gonna re-print here in the event that link dies.

Put this in /etc/networks/interfaces to create a working bridge entry:

auto vmbr2
iface vmbr2 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQUERADE


Then restart the server.

Use these settings when configuring VM networks:
ip : 192.168.0.1 to 192.168.0.250
subnet mask 255.255.255.0
gateway : 192.168.0.254 (ip vmbr2 on the host)
DNS: your server's DNS or google's (8.8.8.8, 8.8.4.4)

It's weird to delete proxmox virtual machines, what I do is:
ssh as root

1)delete the configuration file under /etc/pve/qemu-server
2)delete the disk image file under /var/lib/vz/images/

The web interface will refresh and the vm will be gone, as an added bonus you'll be able to re-use the node number for a new vm.

automating zfs mounts -a quick and very dirty script

 #!/bin/sh for x in obj xsrc src pkgsrc pkgsrc/distfiles pkgsrc/packages pkg         do zfs create ext/$x zfs set mountpoint=/usr/$x ext/$x ...