5
submitted 9 hours ago by [email protected] to c/[email protected]

cross-posted from: https://lemmy.world/post/31711492

cross-posted from: https://lemmy.world/post/31710629

I'm trying to boot some VMs using a script w/ a kickstart file. I'm using the following script that I found online and modified:

#!/usr/bin/env bash
#set -x
## Define variables
MEM_SIZE="8192"      # Memory setting in MiB
VCPUS="2"             # CPU Cores count
#OS_VARIANT="rocky9"   # List with osinfo-query  os
OS_VARIANT="rhel7.9"   # List with osinfo-query  os
ISO_FILE="~/Documents/software/os/RHEL-7.9-20200917.0-Server-x86_64-dvd1.iso" # Path to ISO file

case $OS_VARIANT in
        rhel7.9)
                KS=ks7.cfg;;
        rocky9)
                KS=ks9.cfg;;
esac

echo -en "Enter vm name: "
read VM_NAME
OS_TYPE="linux"
echo -en "Enter virtual disk size : "
read DISK_SIZE

DISK=~/.local/share/libvirt/images/${VM_NAME}.qcow2

echo "Creating disk"
sudo virt-install \
     --name ${VM_NAME} \
     --memory=${MEM_SIZE} \
     --vcpus=${VCPUS} \
     --location ${ISO_FILE} \
     --network network=default \
     --disk path=${DISK},size=${DISK_SIZE} \
     --graphics=none \
     --os-variant=${OS_VARIANT} \
     --console pty,target_type=serial \
     --initrd-inject ~/virt/${KS} --extra-args "inst.ks=file:/${KS} console=tty0 console=ttyS0,115200n8"

I've obfuscated the directory paths, but they're all full paths and the script will build a VM. So basically just setting up a basic system, using the default network. Here's the config for that:

<network connections='3'>
  <name>default</name>
  <uuid>61afc7f1-9c5e-4cra-8d18-e3cf4f9358e9</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:7c:32:9b'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

Looking at the XML for the VM, I see the following for the network:

<interface type='network'>
      <mac address='52:54:00:07:82:78'/>
      <source network='default' portid='800dfd67-d90a-42te-a0b7-c4c78cdae481' bridge='virbr0'/>
      <target dev='vnet7'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

When this VM is installing, and when it's booted, it does not have an IP. Meanwhile, if I go through virt-manager and select the default network, it gets an IP just fine. I've tried running the virt-install command w/ and w/o sudo (I run virt-manager as me - I'm in the libvirt group). Looking at the virt-manager built VM:

    <interface type='network'>
      <mac address='52:54:00:5e:f5:05'/>
      <source network='default' portid='d57dbc56-759e-40f9-856f-9623f4801a93' bridge='virbr0'/>
      <target dev='vnet8'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

Looking at virbr0:

$ ip link show master virbr0
11: vnet7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:07:82:78 brd ff:ff:ff:ff:ff:ff
12: vnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:5e:f5:05 brd ff:ff:ff:ff:ff:ff

Only difference I can see is one is created using virt-manager and the other using virt-install (which calls to virt-install, no?). I thought there was a way to see the actual virt-install command virt-manager was about to use when creating a VM, but I can't find it. Also can't find any logs to give me an idea why the VM isn't getting an IP. Running ethtool on the VM interface shows a link. I've wasted too much time getting this to work, and all the documentation suggests it should "just work!"

10
submitted 9 hours ago by [email protected] to c/[email protected]

cross-posted from: https://lemmy.world/post/31710629

I'm trying to boot some VMs using a script w/ a kickstart file. I'm using the following script that I found online and modified:

#!/usr/bin/env bash
#set -x
## Define variables
MEM_SIZE="8192"      # Memory setting in MiB
VCPUS="2"             # CPU Cores count
#OS_VARIANT="rocky9"   # List with osinfo-query  os
OS_VARIANT="rhel7.9"   # List with osinfo-query  os
ISO_FILE="~/Documents/software/os/RHEL-7.9-20200917.0-Server-x86_64-dvd1.iso" # Path to ISO file

case $OS_VARIANT in
        rhel7.9)
                KS=ks7.cfg;;
        rocky9)
                KS=ks9.cfg;;
esac

echo -en "Enter vm name: "
read VM_NAME
OS_TYPE="linux"
echo -en "Enter virtual disk size : "
read DISK_SIZE

DISK=~/.local/share/libvirt/images/${VM_NAME}.qcow2

echo "Creating disk"
sudo virt-install \
     --name ${VM_NAME} \
     --memory=${MEM_SIZE} \
     --vcpus=${VCPUS} \
     --location ${ISO_FILE} \
     --network network=default \
     --disk path=${DISK},size=${DISK_SIZE} \
     --graphics=none \
     --os-variant=${OS_VARIANT} \
     --console pty,target_type=serial \
     --initrd-inject ~/virt/${KS} --extra-args "inst.ks=file:/${KS} console=tty0 console=ttyS0,115200n8"

I've obfuscated the directory paths, but they're all full paths and the script will build a VM. So basically just setting up a basic system, using the default network. Here's the config for that:

<network connections='3'>
  <name>default</name>
  <uuid>61afc7f1-9c5e-4cra-8d18-e3cf4f9358e9</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:7c:32:9b'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

Looking at the XML for the VM, I see the following for the network:

<interface type='network'>
      <mac address='52:54:00:07:82:78'/>
      <source network='default' portid='800dfd67-d90a-42te-a0b7-c4c78cdae481' bridge='virbr0'/>
      <target dev='vnet7'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

When this VM is installing, and when it's booted, it does not have an IP. Meanwhile, if I go through virt-manager and select the default network, it gets an IP just fine. I've tried running the virt-install command w/ and w/o sudo (I run virt-manager as me - I'm in the libvirt group). Looking at the virt-manager built VM:

    <interface type='network'>
      <mac address='52:54:00:5e:f5:05'/>
      <source network='default' portid='d57dbc56-759e-40f9-856f-9623f4801a93' bridge='virbr0'/>
      <target dev='vnet8'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

Looking at virbr0:

$ ip link show master virbr0
11: vnet7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:07:82:78 brd ff:ff:ff:ff:ff:ff
12: vnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:5e:f5:05 brd ff:ff:ff:ff:ff:ff

Only difference I can see is one is created using virt-manager and the other using virt-install (which calls to virt-install, no?). I thought there was a way to see the actual virt-install command virt-manager was about to use when creating a VM, but I can't find it. Also can't find any logs to give me an idea why the VM isn't getting an IP. Running ethtool on the VM interface shows a link. I've wasted too much time getting this to work, and all the documentation suggests it should "just work!"

9
submitted 10 hours ago* (last edited 5 hours ago) by [email protected] to c/[email protected]

I'm trying to boot some VMs using a script w/ a kickstart file. I'm using the following script that I found online and modified:

#!/usr/bin/env bash
#set -x
## Define variables
MEM_SIZE="8192"      # Memory setting in MiB
VCPUS="2"             # CPU Cores count
#OS_VARIANT="rocky9"   # List with osinfo-query  os
OS_VARIANT="rhel7.9"   # List with osinfo-query  os
ISO_FILE="~/Documents/software/os/RHEL-7.9-20200917.0-Server-x86_64-dvd1.iso" # Path to ISO file

case $OS_VARIANT in
        rhel7.9)
                KS=ks7.cfg;;
        rocky9)
                KS=ks9.cfg;;
esac

echo -en "Enter vm name: "
read VM_NAME
OS_TYPE="linux"
echo -en "Enter virtual disk size : "
read DISK_SIZE

DISK=~/.local/share/libvirt/images/${VM_NAME}.qcow2

echo "Creating disk"
sudo virt-install \
     --name ${VM_NAME} \
     --memory=${MEM_SIZE} \
     --vcpus=${VCPUS} \
     --location ${ISO_FILE} \
     --network network=default \
     --disk path=${DISK},size=${DISK_SIZE} \
     --graphics=none \
     --os-variant=${OS_VARIANT} \
     --console pty,target_type=serial \
     --initrd-inject ~/virt/${KS} --extra-args "inst.ks=file:/${KS} console=tty0 console=ttyS0,115200n8"

I've obfuscated the directory paths, but they're all full paths and the script will build a VM. So basically just setting up a basic system, using the default network. Here's the config for that:

<network connections='3'>
  <name>default</name>
  <uuid>61afc7f1-9c5e-4cra-8d18-e3cf4f9358e9</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:7c:32:9b'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

Looking at the XML for the VM, I see the following for the network:

<interface type='network'>
      <mac address='52:54:00:07:82:78'/>
      <source network='default' portid='800dfd67-d90a-42te-a0b7-c4c78cdae481' bridge='virbr0'/>
      <target dev='vnet7'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

When this VM is installing, and when it's booted, it does not have an IP. Meanwhile, if I go through virt-manager and select the default network, it gets an IP just fine. I've tried running the virt-install command w/ and w/o sudo (I run virt-manager as me - I'm in the libvirt group). Looking at the virt-manager built VM:

    <interface type='network'>
      <mac address='52:54:00:5e:f5:05'/>
      <source network='default' portid='d57dbc56-759e-40f9-856f-9623f4801a93' bridge='virbr0'/>
      <target dev='vnet8'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

Looking at virbr0:

$ ip link show master virbr0
11: vnet7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:07:82:78 brd ff:ff:ff:ff:ff:ff
12: vnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:5e:f5:05 brd ff:ff:ff:ff:ff:ff

Only difference I can see is one is created using virt-install and the other using virt-manager (which calls to virt-install, no?). I thought there was a way to see the actual virt-install command virt-manager was about to use when creating a VM, but I can't find it. Also can't find any logs to give me an idea why the VM isn't getting an IP. Running ethtool on the VM interface shows a link. I've wasted too much time getting this to work, and all the documentation suggests it should "just work!"

[-] [email protected] 49 points 1 day ago

I’m sure more than a few of them have that in their history, along with numerous times starting a sentence with, “I’m not racist but…”

[-] [email protected] 16 points 1 day ago

This is the correct answer.

[-] [email protected] 15 points 2 days ago

Little known inspiration for the movie! /s

[-] [email protected] 5 points 2 days ago

Absolutely drink a lot of water. One general starting point I read awhile back, focusing on people predisposed to kidney stones, was to divide your weight by 2, and drink that amount in ounces every day. If you exercise, it recommended 1 liter/hour, and that didn’t count towards your daily water needs.

Also, along with cranberry juice, add some lemon juice to the water at least once per day. This will also help with breaking up stones and keeping them from forming. You can keep the juice in an ice tray in the freezer to make it a bit more handy. The bottled lemon juice is terrible compared to fresh, at least in the US.

[-] [email protected] 8 points 2 days ago

It could be a perspective thing. Children of immigrants possibly don’t see themselves as immigrants or even adjacent.

One other thought I had was about trust fund kids thinking they “worked as hard as anyone else” for their riches. For example, I remember when Bezos was building Amazon. He certainly did work hard to build that site, but the benefits of the loan his parents provided cannot be overlooked or forgotten. Same thing with Elon… most rich people, for that matter.

[-] [email protected] 3 points 2 days ago

I thought Omnivore was sold.

Also, isn’t pocket being renamed to something? Odd having it listed as an “alternative” to itself!

[-] [email protected] 3 points 3 days ago

They need to help him.

[-] [email protected] 2 points 3 days ago

Started with playing MUDs in the university computer lab. Started on Windows 3.11. Got a Mindspring dial-up account while in college, and discovered IRC not long after. Wound up working for an ISP (InfiNet) for awhile in the late 90s.

[-] [email protected] 2 points 3 days ago

Not sure why the cross posts... I guess it's just Photon being "helpful."

Daily Octordle #1240
9️⃣7️⃣
6️⃣4️⃣
🕛🕚
🔟8️⃣
Score: 67
2
submitted 3 days ago by [email protected] to c/[email protected]
[-] [email protected] 1 points 3 days ago
Daily Octordle #1240
9️⃣7️⃣
6️⃣4️⃣
🕛🕚
🔟8️⃣
Score: 67
[-] [email protected] 3 points 3 days ago
🙂 Daily Quordle 1240
🟥9️⃣
8️⃣5️⃣
m-w.com/games/quordle/
⬜⬜🟩⬜🟨 ⬜🟩⬜⬜⬜
🟨⬜⬜🟨⬜ ⬜⬜🟩⬜⬜
⬜⬜⬜⬜🟩 ⬜🟩🟩⬜⬜
⬜⬜⬜⬜🟨 🟨⬜🟩⬜⬜
⬜⬜⬜⬜🟨 ⬜⬜🟩⬜⬜
🟨⬜⬜⬜⬜ 🟩🟩🟩🟨⬜
🟨⬜⬜⬜⬜ 🟩🟩🟩⬜⬜
🟨⬜⬜⬜⬜ ⬜⬜🟨🟨⬜
🟨⬜⬜⬜⬜ 🟩🟩🟩🟩🟩

⬜⬜🟨🟨⬜ ⬜⬜⬜🟩🟩
🟩🟩🟨⬜⬜ ⬜⬜🟩🟨⬜
⬜⬜🟨⬜⬜ ⬜⬜🟩⬜⬜
⬜⬜🟨🟨⬜ ⬜🟩🟩🟩🟩
⬜⬜🟨🟨⬜ 🟩🟩🟩🟩🟩
⬜⬜🟨🟨⬜ ⬛⬛⬛⬛⬛
⬜⬜🟨⬜⬜ ⬛⬛⬛⬛⬛
🟩🟩🟩🟩🟩 ⬛⬛⬛⬛⬛
6
Quordle 6/17/25 (Classic) (www.merriam-webster.com)
submitted 3 days ago by [email protected] to c/[email protected]
[-] [email protected] 11 points 4 days ago* (last edited 4 days ago)

We have one of these! Saw a pic on Reddit and had it delivered within a week. We actually use it all the time for things that shouldn’t go in the dishwasher. A few things:

  • They’re expandable, so they can go over single and double sinks.
  • They’re generally made of “just strong enough” metal, to the shelves sag. Have had some heavy stuff on there, so it’s still pretty solid.
  • It never looks anywhere near this organized.
  • Stuff stays on it way longer than necessary, but it does eventually get put away… when we have company over.
26
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]

Current setup is PMS running on a Synology 5-bay, and another PMS running on a Shield Pro. The NAS server is primarily used for remote streaming, while the Shield serves to my home LAN (AppleTVs mainly).

I've been seeing stuttering on larger files, either using the Plex app or Infuse, and I'm fairly certain the Synology is the weak link. Network performance in the house has pretty solid, though admittedly I could stand to test it more thoroughly. I've been looking at moving my library to a standalone system. I've been looking at the Beelink ME Mini (which happens to be on sale!). What I don't know is the best way to build this out.

I don't want to have to buy all 6 SSDs (ar at least 6x4TB ones!) at once, so I'd be looking at either a stock Linux (Ubuntu or Rocky) install w/ I guess a BTRFS pool for the SSDs (I'm guessing I can use the eMMC for OS depending on how big the install is - that or use the SSD in slot 4). Alternatively, i could possibly set up TruNAS w/ the Plex pp to manage the storage.

As for populating the media, I plan to keep the Synology as the central repo of my data. I have it replicating to another NAS at my dad's house, with movies/music/tv replicating using Syncthing. I plan to also use Syncthing to populate the Beelink.

Anyway, please poke holes in this plan and/or suggest a better one. My main goals are to get the media I'm streaming off spinning disk w/ minimal power draw (didn't mention that above) in a way that I can expand storage as necessary to accommodate the media library. Nothing's purchased yet, so I'm not married to the hardware. I would ideally like to convert the library to h.265 or even AV1 if I can make it work.

ETA: For clarity: I'm not transcoding AFAIK. My Shield mounts the Synology over SMB and mostly works fine, until I try to play anything 4k - then I get stuttering. On the surface, this sounded like a network issue, but I can't find a problem w/ the LAN. My thought was to move the PMS to a single location w/ local storage, and use the Synology just as an archive.

ETA2: FWIW, I have not expanded the memory on the Synology or installed any cache drives.

87
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

There comes a point in the career of every contemporary Republican politician when they will be forced to do, say, or defend something that is broadly unconscionable. This mandatory inevitable heel turn is the price of conservative political ambition in the Donald Trump era. In exchange for the right to seek and attain national office in the party that he leads, Trump—in a curdled neofascist parody of the wedding scene from The Godfather—always eventually requires his supplicants to prove their loyalty to him by taking on his vendettas, bigotries, hatreds, and obsessions as their own. What’s more, he prefers that they do it with gusto.

Archive link

242
submitted 2 months ago by [email protected] to c/[email protected]
21
submitted 2 months ago by [email protected] to c/[email protected]

Watched it with my wife over the weekend, and had some thoughts. First, the acting is exceptional throughout. Seriously, I don’t think there was a weak performance from anyone. Second, the cinematography was clever, but I’m not sure it was anything more than that. Shooting each episode as a oner brings some limitations with what you can do plot-wise. This brings me to my third thought: I think they missed an episode. Each of the 4 episodes focuses on one person or small group of people, but there isn’t really an episode that focuses on the boy and the victim before the “incident.”

Tap for spoilerEpisode 1 first hits you with the arrest, then there’s a slow boil until the end when you see this kid you had some sympathy for actually did it! I think episode 2 or 3 should have been a look at his and her perspectives leading up to the attack. Was she bullying him, or was she pointing out what everyone else already knew: that he was a men’s rights activist/incel/redpiller. His friends didn’t seem that close to him, was his radicalization causing a split between them? I’m not looking for the story to be tied up. I like that it leaves a lot unanswered. I just think it could have been better with a little background on the lead-up to the attack. Unfortunately, I don’t see how they could’ve maintained the cinematography while following both characters around before the attack. Maybe have that episode take place at school. I don’t know.

270
submitted 4 months ago by [email protected] to c/[email protected]
104
submitted 5 months ago by [email protected] to c/[email protected]

I got a P1S as a Christmas present for me and my wife. For now, my plan is to block its internet connection and stop using the Bambu app altogether. When/if it his stops working for me, what does the community recommend as a replacement for newbies like me, or future newbs who haven’t made this mistake?

10
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
Daily Octordle #1085
9️⃣3️⃣
🕐🔟
🕚4️⃣
7️⃣🕛
Score: 69
view more: next ›

d00phy

0 post score
0 comment score
joined 2 years ago